jQuery(document).ready( function(){
	jQuery("#post_job_form").validate({
		rules: {
			title : "required" ,
			description :"required" ,
			trade :"required" ,
			email: {
					 required: true,
					 email: true
					},		
			telephone: "required" ,	
			firstname: "required" ,
			line_1 : 	"required" ,
			city : "required" ,
			postcode : "required" ,
			terms : "required" 
		},
		messages: {
			title : "Job title was not entered" ,
			description :"Requirements were not entered" ,
			trade :"Trade was not entered" ,
			email: {
					 required: "Email not entered",
					 email: "Invalid email address entered"
					},		
			telephone: "Telephone number not entered" ,	
			firstname: "Name was not entered" ,
			line_1 : 	"Address was not entered" ,
			city : "City was not entered" ,
			postcode : "Invalid postcode entered" ,
			terms : "You must agree to the terms of use" 
		}
	});
});